<%@ page import="gdepot.Goods" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'goods.label', default: 'Goods')}" />
    <title><g:message code="default.edit.label" args="[entityName]" /></title>
</head>
<body>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><g:link controller="goods" action="index">图书</g:link></li>
            <li>搜索图书</li>
        </ol>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="row">
        <div class="container">
            <div class="alert alert-danger" role="alert">${flash.message}</div>
        </div>
    </div>
</g:if>
<g:hasErrors bean="${goodsInstance}">
    <div class="row">
        <div class="container">
            <div class="alert alert-danger" role="alert">
                <ul class="errors" role="alert">
                    <g:eachError bean="${goodsInstance}" var="error">
                        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                    </g:eachError>
                </ul>
            </div>
        </div>
    </div>
</g:hasErrors>

<div class="row">
    <div class="container col-md-6 col-md-offset-3">
        <div class="panel panel-primary">
            <div class="panel-heading">搜索图书信息</div>
                <div class="panel-body">
                    <g:form  method="POST" class="form-horizontal" >
                        <fieldset class="form">
                            <g:render template="form1"/>
                        </fieldset>
                        <fieldset class="buttons">
                            <g:actionSubmit class="btn btn-success btn-block" action="search" value="Seach" />
                        </fieldset>
                    </g:form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
